<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{main::head}">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<form class="container-fluid form-student-info" th:object="${teacher}" action="account-info" method="post">
    <script th:if="${boolean}">
        window.alert("修改成功")
    </script>
    <div class="row justify-content-center">
        <label class="col-2 col-form-label" for="inputName1">教师姓名：</label>
        <input id="inputName1" type="text" th:value="*{name}" class="col-7"/>
    </div>
    <div class="row justify-content-center">
        <label class="col-2 col-form-label" for="inputSex1">性别：</label>
        <input id="inputSex1" type="text" class="col-7" th:value="*{sex}"/>
    </div>
    <div class="row justify-content-center">
        <label class="col-2 col-form-label" for="inputPhone1">职位</label>
        <input id="inputPhone1" type="text" class="col-7" th:value="*{occupation}"/>
    </div>
    <div class="row justify-content-center">
        <label class="col-2 col-form-label" for="inputEmail1">年龄</label>
        <input id="inputEmail1" type="text" class="col-7" th:value="*{age}"/>
    </div>
    <div class="row justify-content-center">
        <div class="col-5"></div>
        <input type="reset" class="btn col-auto" value="重置"/>
        <input type="submit" class="btn btn-primary col-auto" value="修改"/>
    </div>
</form>
</body>
</html>